package DAO;

import javabean.Customer;
import javabean.customerPackage;
import javabean.Package;

import java.sql.SQLException;
import java.util.List;

public interface IPackageDAO {
    public boolean addPackage(Package pkg) throws SQLException;

    public boolean deletePackage(int PackageID) throws SQLException;

    public boolean updatePackage(Package pkg) throws SQLException;

    public Package getPackageByID(int PackageID) throws SQLException;

    public List<Package> getAllPackages() throws SQLException;

    public customerPackage GetCustomerPackage(Customer customer) throws SQLException;

    public boolean subscribePackage(Package pkg, Customer customer) throws SQLException;

    public boolean deleteCustomerPackage(customerPackage customerpackage) throws SQLException;
}
